package com.cn.springcloudwechat.model.articleAndMenu;

import org.joda.time.DateTime;

import java.util.Date;

/**
 * 文章专题中间表
*@program: YmSubject
*@author: Administrator
*@create: 2018-07-19 16:06
*/
public class YmSubject {
    /**
     * 专题包ID
     */
    private Long subjectPackageId;
    /**
     *文章id
     */
    private Long articleId;
    /**
     *  创建时间
     */
    private Date createTime;

    /**
     * 创建时间 yyyy-MM-dd
     */
    private String strCreateTime;
    /**
     *更新时间
     */
    private Date updateTime;
    /**
     * 更新时间 yyyy-MM-dd
     */
    private String strUpdateTime;
    /***
     * 状态
     */
    private Short state;

    public Long getSubjectPackageId() {
        return subjectPackageId;
    }

    public void setSubjectPackageId(Long subjectPackageId) {
        this.subjectPackageId = subjectPackageId;
    }

    public Long getArticleId() {
        return articleId;
    }

    public void setArticleId(Long articleId) {
        this.articleId = articleId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.strCreateTime=new DateTime(createTime).toString("yyyy-MM-dd hh:mm:ss");
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.strUpdateTime=new DateTime(updateTime).toString("yyyy-MM-dd hh:mm:ss");
        this.updateTime = updateTime;
    }

    public Short getState() {
        return state;
    }

    public void setState(Short state) {
        this.state = state;
    }
}